package net.lab1024.sa.admin.module.business.picture.dao;

import java.util.List;
import net.lab1024.sa.admin.module.business.picture.domain.entity.PictureEntity;
import net.lab1024.sa.admin.module.business.picture.domain.form.PictureQueryForm;
import net.lab1024.sa.admin.module.business.picture.domain.vo.PictureVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 全景图添加 Dao
 *
 * @Author 骆伟林
 * @Date 2025-10-22 17:09:49
 * @Copyright 软件需求工程第八组
 */

@Mapper
public interface PictureDao extends BaseMapper<PictureEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<PictureVO> queryPage(Page page, @Param("queryForm") PictureQueryForm queryForm);

    /**
     * 更新删除状态
     */
    long updateDeleted(@Param("addressId")Long addressId,@Param("deletedFlag")boolean deletedFlag);

    /**
     * 批量更新删除状态
     */
    void batchUpdateDeleted(@Param("idList")List<Long> idList,@Param("deletedFlag")boolean deletedFlag);

    /**
     * 根据地点id列表批量更新删除状态
     */
    void batchUpdateDeletedByAddressId(@Param("addressIdList")List<Long> addressIdList,@Param("deletedFlag")boolean deletedFlag);
}
